snapshot: Make gtk_snapshot_get_renderer() private
authorBenjamin Otte <otte@redhat.com>
Tue, 13 Dec 2016 04:08:40 +0000 (05:08 +0100)
committerBenjamin Otte <otte@redhat.com>
Tue, 20 Dec 2016 17:01:10 +0000 (18:01 +0100)
Public API doesn't need to be concerned with renderers. Worst case, they
can use NULL instead of the actual renderer.

docs/reference/gtk/gtk4-sections.txt
gtk/gtkiconhelper.c
gtk/gtksnapshot.h
gtk/gtksnapshotprivate.h

index 4882717c797b56e4aef379182459c70317a93662..8e1f9e6d8c5d26741c0566ce45a4765e3aaaa7c5 100644 (file)
@@ -4453,7 +4453,6 @@ gtk_volume_button_get_type
 <FILE>gtksnapshot</FILE>
 <TITLE>GtkSnapshot</TITLE>
 GtkSnapshot
-gtk_snapshot_get_renderer
 gtk_snapshot_push
 gtk_snapshot_push_node
 gtk_snapshot_pop
index 72362d467726f679c85e594a53fb525824357343..82576fd7baa6a66173be3cc51ae9285c46f05199 100644 (file)
@@ -553,8 +553,7 @@ gtk_icon_helper_ensure_surface (GtkIconHelper *self)
 }
 
 static void
-gtk_icon_helper_ensure_texture (GtkIconHelper *self,
-                                GskRenderer   *renderer)
+gtk_icon_helper_ensure_texture (GtkIconHelper *self)
 {
   cairo_surface_t *map;
   int width, height, scale;
@@ -874,7 +873,7 @@ gtk_icon_helper_snapshot (GtkIconHelper *self,
   GtkCssStyle *style;
   GskTexture *texture;
 
-  gtk_icon_helper_ensure_texture (self, gtk_snapshot_get_renderer (snapshot));
+  gtk_icon_helper_ensure_texture (self);
   texture = self->priv->texture;
   if (texture == NULL)
     return;
index 8a2cc4ac1ea9e2e4314b71b88269195f7c4199f0..7b7e5efe0925fafc2ddbb928a091efeaab9e1ec2 100644 (file)
@@ -36,9 +36,6 @@
 
 G_BEGIN_DECLS
 
-GDK_AVAILABLE_IN_3_90
-GskRenderer *   gtk_snapshot_get_renderer               (const GtkSnapshot      *snapshot);
-
 GDK_AVAILABLE_IN_3_90
 void            gtk_snapshot_push                       (GtkSnapshot            *snapshot,
                                                          gboolean                keep_coordinates,
index eb8cbacba0206a0dc76a78138de92e7fc645a83f..9050c4f652be418b0667c81cfbc14ffc6a3d0bb4 100644 (file)
@@ -48,6 +48,8 @@ void            gtk_snapshot_init               (GtkSnapshot             *state,
                                                  ...) G_GNUC_PRINTF (4, 5);
 GskRenderNode * gtk_snapshot_finish             (GtkSnapshot             *state);
 
+GskRenderer *   gtk_snapshot_get_renderer       (const GtkSnapshot       *snapshot);
+
 G_END_DECLS
 
 #endif /* __GTK_SNAPSHOT_PRIVATE_H__ */